/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package toster;

import java.awt.AWTEvent;
import java.awt.Event;

/**
 *  this class makes the gird events
 * @author rcluster
 */
public class GridEvent extends AWTEvent{
    private int X;
    private int Y;
    private int Value;
    public GridEvent(Object source, int id) {
        super(source, id);
    }

    public GridEvent(Event event) {
        super(event);
    }
/**
 *
 * @param source the class that make this event
 * @param id a number
 * @param X  the X value in the main grid
 * @param Y  The Y value in the main grid
 */
    public GridEvent (Object source, int id,int X,int Y){
        this(source, id);
        this.X=X;
        this.Y=Y;
        Value=Function.filled;
    }
/**
 * 
 * @param source the class that make this event
 * @param id a number
 * @param X  the X value in the main grid
 * @param Y  The Y value in the main grid
 * @param Value the value to set the event to
 */
    public GridEvent (Object source, int id,int X,int Y,int Value){
        this(source, id);
        this.X=X;
        this.Y=Y;
        this.Value=Value;
    }

    public int getValue() {
        return Value;
    }

    public int getX() {
        return X;
    }

    public int getY() {
        return Y;
    }

}
